<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Đăng nhập',
);
?>

<h1>Đăng nhập</h1>

<div class="form" id="login">
<?php $form = $this->beginWidget('CActiveForm',array(
   'id' => 'login-form',
   'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
   'htmlOptions' => array(
      'class' => 'user-form',
   )
))?>
<form id="login-form" action="/site/login" method="post">
   <p class="note">Những dòng đánh dấu <span class="required">*</span> là bắt buộc nhập.</p>

	<div class="">
      <?php echo $form->labelEx($model,'username');?>	
      <?php echo $form->error($model,'username');?>
      <?php echo $form->textField($model,'username');?>
   </div>
   <div class="">
      <?php echo $form->labelEx($model,'password');?>	
      <?php echo $form->error($model,'password');?>	
      <?php echo $form->passwordField($model,'password');?>
   </div>
   
	<div class="buttons">
		<?php echo CHtml::submitButton('Đăng nhập');?>      	
   </div>

<?php $this->endWidget();?>
</div><!-- form -->
